import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes = [
  {
    //路由初始指向
    path: '/',
    component: () => import('@/views/Main.vue'),
    name: "home1",
    children: [
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/Login.vue'),
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('@/views/login/Register.vue'),
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router